home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cug191
/
testc.c
< prev
next >
Wrap
Text File
|
1986-07-10
|
380b
|
20 lines
/* file testc.C */
#include "a:stdio.h"
#include "a:math.h"
main()
{ int i ; float sq(),cu() ;
for (i= 0; i < 15 ; i++)
printf("%d %f %f\n",i,sq( (float) i),cu( (float) i) ) ;
}
/* routines from library file, USRLIB.B*/
/****************************************/
float sq(x) float x ;
{return(x*x) ; }
/**/
float cu(x) float x ;
{return(x*sq(x)) ; }
/**/